//
//  TotalSubCollectionViewCell.m
//  11111
//
//  Created by lanou3g on 15/10/29.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "TotalSubCollectionViewCell.h"

@implementation TotalSubCollectionViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super init];
    if (self) {
        [self addSubViews];
    }
    return self;
}


// 布局视图
- (void)addSubViews
{
    self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 150 * kWidth, 150 * kHeight)];
    self.imageV.backgroundColor = [UIColor grayColor];
    [self addSubview:self.imageV];
    
    self.upLabel = [[UILabel alloc] initWithFrame:CGRectMake(160 * kWidth, 50 * kHeight, 150 * kWidth, 50 * kHeight)];
    self.upLabel.backgroundColor = [UIColor greenColor];
    [self addSubview:self.upLabel];
    
    self.downLabel = [[UILabel alloc] initWithFrame:CGRectMake(160 * kWidth, 120 * kHeight, 150 * kWidth, 50 * kHeight)];
    self.downLabel.backgroundColor = [UIColor brownColor];
    [self.contentView addSubview:self.downLabel];
    
}



@end
